import request from '@/config/axios'
/**
 * 分页查询仓库信息
 */
export const pageQuery = (params) => {
  return request.get({ url: '/material/warehouse/page-query', params })
}

/**
 * 创建仓库信息
 */
export const create = (data) => {
  return request.post({ url: '/material/warehouse/create', data })
}

/**
 * 更新仓库信息
 */
export const update = (data) => {
  return request.put({ url: '/material/warehouse/update', data })
}

/**
 * 删除仓库信息
 */
export const deleted = (id) => {
  return request.delete({ url: '/material/warehouse/deleted?id=' + id })
}

/**
 * 获取单个仓库信息
 */
export const singleGet = (id) => {
  return request.get({ url: '/material/warehouse/single-get?id=' + id })
}

/**
 * 查询仓库精简信息
 */
export const simpleList = () => {
  return request.get({ url: '/material/warehouse/simple-list' })
}
